#include "login.h"
#include <QApplication>
#include <QDesktopWidget>
#include <QDir>
#include <QApplication>

int main(int argc, char *argv[])
{
    QString strLibPath(QDir::toNativeSeparators(QApplication::applicationDirPath())+QDir::separator()+"plugins");

    QApplication::addLibraryPath(strLibPath);

    QApplication a(argc, argv);

    Widget w;

    w.show();
    //屏幕居中  先 #include <QDesktopWidget>
    w.move((QApplication::desktop()->width() - w.width())/2,
             (QApplication::desktop()->height() - w.height())/2);

    return a.exec();
}
